﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Main.aspx.cs" Inherits="SGDemo.Web.Main" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=7" />
    <title>辉煌装修信息管理系统</title>
    <link href="Styles/themes/default/style.css" rel="stylesheet" type="text/css" media="screen" />
    <link href="Styles/themes/css/core.css" rel="stylesheet" type="text/css" media="screen" />
    <link href="Styles/themes/css/print.css" rel="stylesheet" type="text/css" media="print" />
    <!--[if IE]>
        <link href="Styles/themes/css/ieHack.css" rel="stylesheet" type="text/css" media="screen"/>
    <![endif]-->
    <script src="Scripts/DWZ/speedup.js" type="text/javascript"></script>
    <script src="Scripts/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="Scripts/DWZ/jquery.cookie.js" type="text/javascript"></script>
    <script src="Scripts/DWZ/jquery.validate.js" type="text/javascript"></script>
    <script src="Scripts/DWZ/jquery.bgiframe.js" type="text/javascript"></script>
    <script src="Scripts/DWZ/dwz.core.js" type="text/javascript"></script>
    <script src="Scripts/DWZ/dwz.util.date.js" type="text/javascript"></script>
    <script src="Scripts/DWZ/dwz.regional.zh.js" type="text/javascript"></script>
    <script src="Scripts/DWZ/dwz.barDrag.js" type="text/javascript"></script>
    <script src="Scripts/DWZ/dwz.drag.js" type="text/javascript"></script>
    <script src="Scripts/DWZ/dwz.tree.js" type="text/javascript"></script>
    <script src="Scripts/DWZ/dwz.accordion.js" type="text/javascript"></script>
    <script src="Scripts/DWZ/dwz.ui.js" type="text/javascript"></script>
    <script src="Scripts/DWZ/dwz.theme.js" type="text/javascript"></script>
    <script src="Scripts/DWZ/dwz.switchEnv.js" type="text/javascript"></script>
    <script src="Scripts/DWZ/dwz.alertMsg.js" type="text/javascript"></script>
    <script src="Scripts/DWZ/dwz.contextmenu.js" type="text/javascript"></script>
    <script src="Scripts/DWZ/dwz.navTab.js" type="text/javascript"></script>
    <script src="Scripts/DWZ/dwz.tab.js" type="text/javascript"></script>
    <script src="Scripts/DWZ/dwz.resize.js" type="text/javascript"></script>
    <script src="Scripts/DWZ/dwz.dialog.js" type="text/javascript"></script>
    <script src="Scripts/DWZ/dwz.dialogDrag.js" type="text/javascript"></script>
    <script src="Scripts/DWZ/dwz.sortDrag.js" type="text/javascript"></script>
    <script src="Scripts/DWZ/dwz.cssTable.js" type="text/javascript"></script>
    <script src="Scripts/DWZ/dwz.stable.js" type="text/javascript"></script>
    <script src="Scripts/DWZ/dwz.taskBar.js" type="text/javascript"></script>
    <script src="Scripts/DWZ/dwz.ajax.js" type="text/javascript"></script>
<%--<script src="Scripts/DWZ/dwz.pagination.js" type="text/javascript"></script>
    <script src="Scripts/DWZ/dwz.database.js" type="text/javascript"></script>
    <script src="Scripts/DWZ/dwz.datepicker.js" type="text/javascript"></script>--%>
    <script src="Scripts/DWZ/dwz.effects.js" type="text/javascript"></script>
    <script src="Scripts/DWZ/dwz.panel.js" type="text/javascript"></script>
    <script src="Scripts/DWZ/dwz.checkbox.js" type="text/javascript"></script>
    <script src="Scripts/DWZ/dwz.history.js" type="text/javascript"></script>
   <%-- <script src="Scripts/DWZ/dwz.combox.js" type="text/javascript"></script>
    <script src="Scripts/DWZ/dwz.print.js" type="text/javascript"></script>--%> 
    <!--
        <script src="bin/dwz.min.js" type="text/javascript"></script>
    -->
    <script src="Scripts/DWZ/dwz.regional.zh.js" type="text/javascript"></script>
    <%--<script src="Scripts/Plugins/jquery.smartresize.js" type="text/javascript"></script>--%>
    <script src="Scripts/Plugins/jquery.extensions.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            DWZ.init("dwz.frag.xml", {
                loginUrl: "login_dialog.html", loginTitle: "登录", // 弹出登录对话框
                //loginUrl:"login.html",	// 跳到登录页面
                statusCode: { ok: 200, error: 300, timeout: 301 }, //【可选】
                pageInfo: { pageNum: "pageNum", numPerPage: "numPerPage", orderField: "orderField", orderDirection: "orderDirection" }, //【可选】
                debug: false, // 调试模式 【true|false】
                callback: function () {
                    initEnv();
                    $("#themeList").theme({ themeBase: "Styles/themes" }); // themeBase 相对于index页面的主题base路径
                }
            });
        });
    </script>
    <script src="Scripts/Common/mainpage.js" type="text/javascript"></script>
</head>
<body scroll="no">
    <form id="form1" runat="server">
    <div id="layout">
        <div id="header">
            <div class="headerNav">
                <a class="logo" href="#">标志</a>
                <ul class="nav">
                    <li style="background: none; color: White;">
                        <asp:HyperLink ID="hlnkRealName" runat="server" NavigateUrl="#" ForeColor="#ffffff"></asp:HyperLink>
                        —
                        <asp:HyperLink ID="hlnkCurrentDept" runat="server" NavigateUrl="#" ForeColor="#ffffff"></asp:HyperLink>
                    </li>
                    <li><a href="Views/OA/Common/NewsList.aspx" target="navTab"  fresh="false" external="true" title="新闻管理">
                        新闻管理</a>
                    </li>
                    <li><a href="Views/OA/Common/NoticeList.aspx" target="navTab"  fresh="false" external="true" title="通知管理">
                        通知管理</a>
                    </li>
                    <li><a href="Views/Permission/Common/ShortcutsList.aspx" target="navTab"  fresh="false" external="true" title="快捷方式">
                        快捷方式</a></li>
                    <li><a href="ContactAdmin.html" target="dialog" width="600" height="130">
                        联系管理员</a></li>
                    <li id="switchEnvBox"><a href="javascript:">修改帐号信息</a>
						<ul style="float:none;">
                            <li><a href="ChangePassword.html" target="dialog" width="600">修改密码</a></li>
							<li><a href="EditProfile.html" target="dialog" width="600" height="320">查看个人资料</a></li>
							<li><a href="EditQuestion.html" target="dialog" width="600">修改密保</a></li>
						</ul>
					</li>
                    <li>
                        <asp:LinkButton ID="btnRelogin" runat="server" OnClientClick="return confirm('确认重新登录？')"  OnClick="btnRelogin_Relogin"  Text="重新登录" />               
                    </li>
                    <li>
                       <asp:LinkButton ID="btnLoginout" runat="server" OnClientClick="return confirm('确认退出系统？')"  OnClick="btnLoginout_Loginout" Text="退出系统"></asp:LinkButton>
                    </li>
                </ul>
                <ul class="themeList" id="themeList">
                    <li theme="silver">
                        <div class="selected">
                            银色</div>
                    </li>
                    <li theme="default">
                        <div>
                            蓝色</div>
                    </li>
                    <li theme="green">
                        <div>
                            绿色</div>
                    </li>
                    <li theme="purple">
                        <div>
                            紫色</div>
                    </li>
                    <li theme="azure">
                        <div>
                            天蓝</div>
                    </li>
                </ul>
            </div>
            <!-- navMenu -->
        </div>
        <div id="leftside">
            <div id="sidebar_s">
                <div class="collapse">
                    <div class="toggleCollapse">
                        <div>
                        </div>
                    </div>
                </div>
            </div>
            <div id="sidebar">
                <div class="toggleCollapse">
                    <h2>
                        主菜单</h2>
                    <div>
                        收缩</div>
                </div>
                <div class="accordion" fillspace="sidebar">
                    <asp:Repeater ID="rptModules" runat="server">
                        <ItemTemplate>
                            <div class="accordionHeader">
                                <h2 onclick="openModuleHome('<%#Eval("NavigateUrl") %>','<%#Eval("NavigateUrl") %>','<%#Eval("ModuleName") %>' )">
                                    <span>Folder</span><%#Eval("ModuleName")%></h2>
                            </div>
                            <div class="accordionContent">
                                <ul class="tree treeFolder">
                                    <asp:Repeater ID="rptPages" runat="server" DataSource='<%# GetPagesByModuleKeyid(Eval("Keyid").ToString())  %>'>
                                        <ItemTemplate>
                                            <li><a href="<%#Eval("NavigateUrl")%>" <%# Eval("NavigateUrl").ToString()=="#"?"": ("rel=\""+ Eval("PageCode").ToString() +"\" target=\""+Eval("Remark").ToString()+"\" external=\"true\" fresh=\"false\"") %> >
                                                <%#Eval("PageName")%></a>
                                                <asp:Repeater ID="rptChildPages" runat="server" DataSource='<%# GetSecondStagePageBy(Eval("Keyid").ToString())  %>' Visible='<%# GetVisible(Eval("Keyid").ToString()) %>' >
                                                    <HeaderTemplate>
                                                        <ul>
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <li><a href="<%#Eval("NavigateUrl")%>" rel="<%#Eval("PageCode")%>" target="<%#Eval("Remark") %>"
                                                            external="true" fresh="false">
                                                            <%#Eval("PageName")%></a> </li>
                                                    </ItemTemplate>
                                                    <FooterTemplate>
                                                        </ul>
                                                    </FooterTemplate>
                                                </asp:Repeater>
                                            </li>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </ul>
                            </div>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>
            </div>
        </div>
        <div id="container">
            <div id="navTab" class="tabsPage">
                <div class="tabsPageHeader">
                    <div class="tabsPageHeaderContent">
                        <!-- 显示左右控制时添加 class="tabsPageHeaderMargin" -->
                        <ul class="navTab-tab">
                            <li tabid="main" class="main"><a href="javascript:;"><span><span class="home_icon">我的工作台</span></span></a></li>
                        </ul>
                    </div>
                    <div class="tabsLeft">
                        left</div>
                    <!-- 禁用只需要添加一个样式 class="tabsLeft tabsLeftDisabled" -->
                    <div class="tabsRight">
                        right</div>
                    <!-- 禁用只需要添加一个样式 class="tabsRight tabsRightDisabled" -->
                    <div class="tabsMore">
                        more</div>
                </div>
                <ul class="tabsMoreList">
                    <li><a href="javascript:;">我的工作台</a></li>
                </ul>
                <div id="navTabPanel" class="navTab-panel tabsPageContent layoutBox">
                    <div class="page unitBox">
                        <iframe id="iframe1" src="Home.aspx" style="width: 100%;" frameborder="no" border="0"
                            marginwidth="0" marginheight="0" onload="closeCurrentProgressBar(this);"></iframe>
                        <div class="background">
                        </div>
                        <div class="progressBar">
                            数据加载中，请稍等...
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div id="footer">
        Copyright&nbsp;&nbsp;&copy; 2012&nbsp;&nbsp;<a href="#" target="dialog">神冠软件</a>&nbsp;&nbsp;Tel：0592-6076721
    </div>
    </form>
</body>
</html>
